Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@amaui/date

Package Overview
Dependencies
Maintainers
0
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amaui/date

Time and date utils library

  • 1.1.16
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
increased by42.86%
Maintainers
0
Weekly downloads
 
Created
Source

amaui logo

amaui Date

Time and date utils library


MIT license     Production ready     min 2.4kb gzipped     100% test cov     Tree shakable     Browser and Nodejs

Very simple code     Modern code     Junior friendly     Typescript     Made with :yellow_heart:


Sizes

AmauiDate 2.4kb gzipped
AmauiDate with all the methods 5.6kb gzipped
AmauiDate with all the methods and all the timezones 22kb gzipped

Getting started

Add

yarn add @amaui/date

Use

  import { AmauiDate, format } from '@amaui/date';

  // Make a new AmauiDate instance
  // with an optional initial value
  const amauiDate = new AmauiDate('2014-04-14T14:04:14.147');

  // Value
  amauiDate.value;

  // a Date instance, Mon Apr 14 2014 14:04:14 GMT+0200 (Central European Summer Time)

  // Format
  // with various ways to add regular text and variables
  format(amauiDate, `MM-DD-YYYY '🙂' HH:mm:ss.SSS`);

  // '04-14-2014 🙂 14:04:14.147'

Dev

Install

yarn

Test

yarn test

Prod

Build

yarn build

Keywords

FAQs

Package last updated on 27 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc